Class pgPortalGunAttachment extends KFWeaponAttachment;

simulated event ThirdPersonEffects()
{
	local PlayerController PC;

	if ( (Level.NetMode == NM_DedicatedServer) || (Instigator == None) )
		return;

  	if ( FlashCount>0 )
	{
		if( KFPawn(Instigator)!=None )
			KFPawn(Instigator).StartFiringX((FiringMode!=0),bRapidFire);

		if( bDoFiringEffects )
		{
			PC = Level.GetLocalPlayerController();
			if ( (Level.TimeSeconds - LastRenderTime > 0.2) && (Instigator.Controller != PC) )
				return;
			WeaponLight();
		}
	}
	else
	{
		GotoState('');
		if( KFPawn(Instigator)!=None )
			KFPawn(Instigator).StopFiring();
	}
}

defaultproperties
{
     MovementAnims(0)="JogF_Mac10"
     MovementAnims(1)="JogB_Mac10"
     MovementAnims(2)="JogL_Mac10"
     MovementAnims(3)="JogR_Mac10"
     TurnLeftAnim="TurnL_Mac10"
     TurnRightAnim="TurnR_Mac10"
     CrouchAnims(0)="CHWalkF_Mac10"
     CrouchAnims(1)="CHWalkB_Mac10"
     CrouchAnims(2)="CHWalkL_Mac10"
     CrouchAnims(3)="CHWalkR_Mac10"
     WalkAnims(0)="WalkF_Mac10"
     WalkAnims(1)="WalkB_Mac10"
     WalkAnims(2)="WalkL_Mac10"
     WalkAnims(3)="WalkR_Mac10"
     CrouchTurnRightAnim="CH_TurnR_Mac10"
     CrouchTurnLeftAnim="CH_TurnL_Mac10"
     IdleCrouchAnim="CHIdle_Mac10"
     IdleWeaponAnim="Idle_Mac10"
     IdleRestAnim="Idle_Mac10"
     IdleChatAnim="Idle_Mac10"
     IdleHeavyAnim="Idle_Mac10"
     IdleRifleAnim="Idle_Mac10"
     FireAnims(0)="Fire_Mac10"
     FireAnims(1)="Fire_Mac10"
     FireAnims(2)="Fire_Mac10"
     FireAnims(3)="Fire_Mac10"
     FireAltAnims(0)="IS_Fire_Mac10"
     FireAltAnims(1)="IS_Fire_Mac10"
     FireAltAnims(2)="IS_Fire_Mac10"
     FireAltAnims(3)="IS_Fire_Mac10"
     FireCrouchAnims(0)="CHFire_Mac10"
     FireCrouchAnims(1)="CHFire_Mac10"
     FireCrouchAnims(2)="CHFire_Mac10"
     FireCrouchAnims(3)="CHFire_Mac10"
     FireCrouchAltAnims(0)="CHFire_Mac10"
     FireCrouchAltAnims(1)="CHFire_Mac10"
     FireCrouchAltAnims(2)="CHFire_Mac10"
     FireCrouchAltAnims(3)="CHFire_Mac10"
     HitAnims(0)="HitF_Mac10"
     HitAnims(1)="HitB_Mac10"
     HitAnims(2)="HitL_Mac10"
     HitAnims(3)="HitR_Mac10"
     PostFireBlendStandAnim="Blend_Mac10"
     PostFireBlendCrouchAnim="CHBlend_Mac10"
     CullDistance=5000.000000
     Mesh=SkeletalMesh'portaltestA.PG3rd'
     Skins(0)=Texture'portaltestT.PG3rdT'
     Skins(1)=Shader'portaltestT.GlassMoistShader'
     Skins(2)=Shader'portaltestT.TUBESHADER'
     Skins(3)=Shader'portaltestT.DecalShine'
}
